package com.itheima.demo.demo13;

import java.util.stream.Stream;

public class StreamStudent {
    public static void main(String[] args) {
        Stream.of("霍元甲","李小龙","洪金宝","元华").map((s)->{
            Student stu=new Student();
            stu.setAge(65);
            stu.setName(s);
            return stu;
        }).forEach(stu-> System.out.println(stu));
    }
}
